<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'FirstName'); ?>
		<?php echo $form->textField($model,'FirstName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'FirstName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LastName'); ?>
		<?php echo $form->textField($model,'LastName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'LastName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'userName'); ?>
		<?php echo $form->textField($model,'userName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'userName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Password'); ?>
		<?php echo $form->passwordField($model,'Password',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'Password'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Status'); ?>
		<?php echo $form->dropDownList($model,'Status',array('2'=>'Inactive','1'=>'Active','3'=>'Banned','4'=>'Deleted'));
		//$form->textField($model,'Status',array('in', 'range' => array( 'Active', 'Inactive','Banned','Deleted' )))); ?>
		<?php echo $form->error($model,'Status'); ?>
	</div>

<!--	<div class="row">
		<?php //echo $form->labelEx($model,'PasswordChangeDate'); ?>
		<?php //echo $form->textField($model,'PasswordChangeDate'); ?>
		<?php //echo $form->error($model,'PasswordChangeDate'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'lastvisite'); ?>
		<?php //echo $form->textField($model,'lastvisite'); ?>
		<?php //echo $form->error($model,'lastvisite'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'createTime'); ?>
		<?php //echo $form->textField($model,'createTime'); ?>
		<?php //echo $form->error($model,'createTime'); ?>
	</div>-->

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->